from constants.recognition import RecognitionStrategy, TimeStrategy
from recognition import Recognition


class QuicklyPullUp(Recognition):
    def __init__(self):
        super().__init__()
        self.time_strategy = [TimeStrategy.TRADING.value]
        self.type = RecognitionStrategy.QUICKLY_PULL_UP.value

    def recognize(self,data):
        code = data.get('code')
        print(code)
        return False

    # def regression(self, data):
    #     quote = data.get('quote')
    #     open_price = quote.get('open')
    #     newest = quote.get('newest')

    #     if newest < open_price:
    #         return True
    #     return False